package com.me.mygdxgame;

import com.badlogic.gdx.Application;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.assets.AssetManager;
import com.me.mygdxgame.assets.Assets;
import com.me.mygdxgame.screens.LoadScreen;
import com.me.mygdxgame.util.GamePreferences;

public class LepWorld extends Game  {

	@Override
	public void create() {
		Gdx.app.setLogLevel(Application.LOG_DEBUG);
		GamePreferences.instance.load();
		setScreen(new LoadScreen(this));
		Assets.instance.init(new AssetManager());
		
	}

//	private static final String TAG = LepWorld.class.getName();
//
//	private WorldController worldController;
//	private WorldRenderer worldRenderer;
//	private boolean paused;
//
//	@Override
//	public void create() {
//		Gdx.app.setLogLevel(Application.LOG_DEBUG);
//		Assets.instance.init(new AssetManager());
//		worldController = new WorldController();
//		worldRenderer = new WorldRenderer(worldController);
//		paused = false;
//	}
//
//	@Override
//	public void dispose() {
//		worldRenderer.dispose();
//		Assets.instance.dispose();
//	}
//
//	@Override
//	public void render() {
//		if (!paused) {
//			worldController.update(Gdx.graphics.getDeltaTime());
//		}
//		Gdx.gl.glClearColor(0x64/255.0f, 0x95/255.0f, 0xed/255.0f, 0xff/255.0f);
//		Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
//		worldRenderer.render();
//	}
//
//	@Override
//	public void resize(int width, int height) {
//		worldRenderer.resize(width, height);
//	}
//
//	@Override
//	public void pause() {
//		paused = true;
//	}
//
//	@Override
//	public void resume() {
//		Assets.instance.init(new AssetManager());
//		paused = false;
//	}
}
